package com.coolingme.springcloud.sentinel;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangyue
 * @date 2022/10/18 11:13
 */
@RestController
public class SentinelController {

    @Autowired
    private SentinelService sentinelService;

    @GetMapping("/hello/{name}")
    public String sayHello(@PathVariable String name) {
        return sentinelService.say(name);
    }

}
